import { Boolean, Desc, Image, PrimaryKey, Title } from "../utils";
import { Entity } from "typeorm";

@Entity({ name: 'fj_pifa' })
export class FjPiFa {
    @PrimaryKey()
    code: string;

    @Title()
    title: string;

    @Desc({ default: '' })
    desc: string;

    @Image({ default: '' })
    icon: string;

    @Boolean({ default: true })
    enabled: boolean;
}


@Entity({ name: 'fj_fenxiao' })
export class FjFenXiao {
    @PrimaryKey()
    code: string;

    @Title()
    title: string;

    @Desc({ default: '' })
    desc: string;

    @Image({ default: '' })
    icon: string;
}

